package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RepairLogMapper;
import com.ruoyi.system.domain.RepairLog;
import com.ruoyi.system.service.IRepairLogService;

/**
 * 报修日志Service业务层处理
 * 
 * @author hzl
 * @date 2025-03-19
 */
@Service
public class RepairLogServiceImpl implements IRepairLogService 
{
    @Autowired
    private RepairLogMapper repairLogMapper;

    /**
     * 查询报修日志
     * 
     * @param repairApplicationId 报修日志主键
     * @return 报修日志
     */
    @Override
    public RepairLog selectRepairLogByRepairApplicationId(Long repairApplicationId)
    {
        return repairLogMapper.selectRepairLogByRepairApplicationId(repairApplicationId);
    }

    /**
     * 查询报修日志列表
     * 
     * @param repairLog 报修日志
     * @return 报修日志
     */
    @Override
    public List<RepairLog> selectRepairLogList(RepairLog repairLog)
    {
        return repairLogMapper.selectRepairLogList(repairLog);
    }

    /**
     * 新增报修日志
     * 
     * @param repairLog 报修日志
     * @return 结果
     */
    @Override
    public int insertRepairLog(RepairLog repairLog)
    {
        return repairLogMapper.insertRepairLog(repairLog);
    }

    /**
     * 修改报修日志
     * 
     * @param repairLog 报修日志
     * @return 结果
     */
    @Override
    public int updateRepairLog(RepairLog repairLog)
    {
        return repairLogMapper.updateRepairLog(repairLog);
    }

    /**
     * 批量删除报修日志
     * 
     * @param repairApplicationIds 需要删除的报修日志主键
     * @return 结果
     */
    @Override
    public int deleteRepairLogByRepairApplicationIds(Long[] repairApplicationIds)
    {
        return repairLogMapper.deleteRepairLogByRepairApplicationIds(repairApplicationIds);
    }

    /**
     * 删除报修日志信息
     * 
     * @param repairApplicationId 报修日志主键
     * @return 结果
     */
    @Override
    public int deleteRepairLogByRepairApplicationId(Long repairApplicationId)
    {
        return repairLogMapper.deleteRepairLogByRepairApplicationId(repairApplicationId);
    }
}
